﻿namespace PorteringManagement.Model
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;

    public class Journey
    {
        [Key]
        public int JourneyID { get; set; }

        public int DeparturePortID { get; set; }

        public int ArrivalPortID { get; set; }

        public string Descripion { get; set; }

        public double? Rate { get; set; }

        public virtual DateTime? DepartureTime { get; set; }

        public virtual Port DeparturePort { get; set; }

        public virtual DateTime? ArrivalTime { get; set; }

        public virtual Port ArrivalPort { get; set; }

        public virtual ICollection<Itinerary> Itineraries { get; set; }
    }
}
